T
IdeaBlade DevForce 2010 Help Reference
GetRelatedEntity<T>(EntityAspect,EntityRelationLink) Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel.Extensions Namespace > EntityAspectExtensions Class > GetRelatedEntity Method : GetRelatedEntity<T>(EntityAspect,EntityRelationLink) Method



entity
Returns the related entity via a IdeaBlade.EntityModel.EntityRelationLink.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function GetRelatedEntity(Of T As EntityAspect)( _
   ByVal entity As EntityAspect, _
   ByVal relationLink As EntityRelationLink _
) As T
Visual Basic (Usage)Copy Code
Dim entity As EntityAspect
Dim relationLink As EntityRelationLink
Dim value As T
 
value = EntityAspectExtensions.GetRelatedEntity(Of T)(entity, relationLink)
C# 
[ExtensionAttribute()]
public static T GetRelatedEntity<T>( 
   EntityAspect entity,
   EntityRelationLink relationLink
)
where T: EntityAspect
C++/CLI 
[ExtensionAttribute()]
public:
static T^ GetRelatedEntitygeneric<typename T>
( 
   EntityAspect^ entity,
   EntityRelationLink^ relationLink
) 
where T: EntityAspect

Parameters

entity
relationLink

Type Parameters

T

Remarks

The current EntityManager.DefaultQueryStrategy is used to determine how this query is fulfilled.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.